<div id="content_header">
  <h3>Bank Transfer Records</h3>
</div>

<div class="row row-unstyled">
  <div class="col-md-12">
    <label>SEARCH</label>
  </div>
</div>

<div class="row">
  <div class="col-md-6 col-lg-4">
    <form class="form-vertical" ng-submit="false">
      <div class="input-group">
        <input class="form-control" type="text" name="keyword" placeholder="Type Name to search" ng-model="searchText.CityName">
        <span class="input-group-addon">Find!</span>
      </div>
    </form>
  </div>
  <div class="col-md-6 col-lg-4">
    <a ui-sref="^.new" class="btn btn-primary">Create a new record</a>
  </div>
</div>

<br>

<div class="row">
  <div class="col-md-12">
    <label>RESULTS</label>
    <div class="search-message">
      Found <span class="primary-color"><b>{{ banktransferrecords.length | filter:searchText }}</b></span> records
    </div>
  </div>
</div>

<div class="row">
  <div class="col-md-12">
    <table class="table table-stripped table-bordered" ng-show="banktransferrecords.length > 0">
      <thead>
        <tr>
          <th>Refference Number</th>
          <th>Bank</th>
          <th>Amount</th>
          <th>Sender</th>
          <th>Date</th>
          <th>Action</th>
        </tr>
      </thead>
      <tbody>
        <tr dir-paginate="record in banktransferrecords | itemsPerPage: pagesize" total-items="totalItems">
          <td>{{ record.RefNumber }}</td>
          <td>{{ record.Bank.Name }}</td>
          <td>{{ record.Amount | currency:'Rp. ' }}</td>
          <td>{{ record.Sender }}</td>
          <td>{{ record.Date | date:'medium' }}</td>
          <td>
            <a class="" href="" ng-click="delete(record.Id)"><i class="simple-icon-trash"></i></a>
            <a class="" ui-sref="^.show({id: record.Id})"><i class="glyphicon glyphicon-edit"></i></a>
          </td>
        </tr>
      </tbody>
    </table>
    <dir-pagination-controls on-page-change="pageChanged(newPageNumber)" template-url="views/templates/dirPagination.tpl.html"></dir-pagination-controls>
  </div>
</div>